package com.tsit.study.dubbo.consumer.reference;

import com.tsit.study.dubbo.provider.api.UserService;
import com.tsit.study.dubbo.provider.entity.User;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author wangxuzhi
 * @date 2020/11/17 17:39
 */
@Component
public class UserReference {

    @DubboReference
    private UserService userService;

    public List<User> getUserList(){
        return userService.getUserList();
    }
}
